package huawei;

/**
 * @author Wenhao Tong
 * @create 2021-07-31 11:06
 */
public class Main2 {
    public static void main(String[] args) {
        MinStack minStack = new MinStack();
        minStack.push(5);
        minStack.push(1);
        minStack.push(4);
        minStack.push(6);
        System.out.println(minStack.getMin());
        minStack.pop();
        minStack.pop();
        minStack.push(2);
        System.out.println(minStack.getMin());
    }
}
